//
//@File    :	4.7_strtpye1.cpp
//@Time    :	2021/08/03 14:59:59
//@Auther  :	Sun Sheng
//@Contact :	970340843@qq.com
//@Desc    :	using the C++ string class
//

#include <iostream>
#include <string>
int main()
{
    using namespace std;
    char charr1[20];
    char charr2[20] = "jaguar";
    string str1;
    string str2 = "panther";

    cout<<"Enter a kind of feline:";
    cin>>charr1;
    cout<<"Enter another kingd of feline:";
    cin>>str1;
    cout<<charr1<<" "<<charr2<<" "
        <<str1<<" "<<str2<<endl;
    cout<<"Thhe third letter in "<<charr2<<"is"
        <<charr2[2]<<endl;
    cout<<"The third letter in "<<str2<<"is"
        <<str2[2]<<endl;
    system("pause");
    return 0;
}